class THCredentials {
  String? panId;
  String? extendedPanid;
  String? activeOperationalDataSet;
  String? networkName;
  int? channel;
  String? pskc;
  String? networkKey;
  String? borderAgentId;

  THCredentials({
    this.panId,
    this.extendedPanid,
    this.activeOperationalDataSet,
    this.networkName,
    this.channel,
    this.pskc,
    this.networkKey,
    this.borderAgentId,
  });

  THCredentials.fromJson(Map json) {
    if (json["panID"] is String) {
      panId = json["panID"];
    }
    if (json["extendedPANID"] is String) {
      extendedPanid = json["extendedPANID"];
    }
    if (json["activeOperationalDataSet"] is String) {
      activeOperationalDataSet = json["activeOperationalDataSet"];
    }
    if (json["networkName"] is String) {
      networkName = json["networkName"];
    }
    if (json["channel"] is int) {
      channel = json["channel"];
    }
    if (json["pskc"] is String) {
      pskc = json["pskc"];
    }
    if (json["networkKey"] is String) {
      networkKey = json["networkKey"];
    }
    if (json["borderAgentID"] is String) {
      borderAgentId = json["borderAgentID"];
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["panID"] = panId;
    _data["extendedPANID"] = extendedPanid;
    _data["activeOperationalDataSet"] = activeOperationalDataSet;
    _data["networkName"] = networkName;
    _data["channel"] = channel;
    _data["pskc"] = pskc;
    _data["networkKey"] = networkKey;
    _data["borderAgentID"] = borderAgentId;
    return _data;
  }
}
